package com.bschlearn.group;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;import lombok.Data;


@Configuration
@PropertySource(value ="classpath:errorcode.properties")
@Data
@SuppressWarnings("unused")
public class ErrorCode {
	
	public static volatile ErrorCode errorCode = null;
	
	private static int SUCCESS_CODE;
	private static int SUCCESS_MSG;
	
	private static int ERROR_CODE;
	private static int ERROR_MSG;
	
	private static int SERVERERROR_CODE;
	private static int SERVERERROR_MSG;
	
	private static int PARAMETERERROR_CODE;
	private static int PARAMETERERROR_MSG;
	
	public static ErrorCode getErrorCode() {
		if(null == errorCode) {
			synchronized (ErrorCode.class) {
				errorCode = new ErrorCode();
			}
		}
		return errorCode;
	}
	
	
	
}
